package cn.itrip.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Setter;
import lombok.Getter;

/**
 * 用户表
 * @auth chendd
 * @date 2020/12/25 08:58
 */
@Setter
@Getter
@ApiModel
@TableName("itrip_user")
public class ItripUser {

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    @TableField("userCode")
    @ApiModelProperty(value = "若是第三方登录，系统将自动生成唯一账号；自注册用户则为邮箱或者手机号")
    private String userCode;

    @TableField("userPassword")
    @ApiModelProperty(value = "若是第三方登录，系统将自动生成唯一密码；自注册用户则为自定义密码")
    private String userPassword;

    @TableField("userType")
    @ApiModelProperty(value = "用户类型（标识：0 自注册用户 1 微信登录 2 QQ登录 3 微博登录）")
    private Integer userType;

    @TableId(value = "flatId" )
    @TableField("flatId")
    @ApiModelProperty(value = "平台ID（根据不同登录用户，进行相应存入：自注册用户主键ID、微信ID、QQID、微博ID）")
    private Long flatId;

    @TableField("userName")
    @ApiModelProperty(value = "用户昵称")
    private String userName;

    @TableField("weChat")
    @ApiModelProperty(value = "微信号")
    private String weChat;

    @TableField("qq")
    @ApiModelProperty(value = "qq账号")
    private String qq;

    @TableField("weibo")
    @ApiModelProperty(value = "微博账号")
    private String weibo;

    @TableField("baidu")
    @ApiModelProperty(value = "百度账号")
    private String baidu;

    @TableField("creationDate")
    @ApiModelProperty(value = "")
    private java.util.Date creationDate;

    @TableField("createdBy")
    @ApiModelProperty(value = "")
    private Long createdBy;

    @TableField("modifyDate")
    @ApiModelProperty(value = "")
    private java.util.Date modifyDate;

    @TableField("modifiedBy")
    @ApiModelProperty(value = "")
    private Long modifiedBy;

    @TableField("activated")
    @ApiModelProperty(value = "是否激活,(0 false，1 true,默认是0)")
    private Integer activated;

}
